<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%String path = request.getContextPath();%>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width,target-densitydpi=high-dpi,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
	<title>微信签到系统-后台管理登录</title>
	<link rel="stylesheet" href="<%=path %>/admin/css/bootstrap.css">
	<style>
		.control-group{
			margin-bottom:15px;
		}
		.login{
			border:1px solid #eee;
			padding-bottom:10px; 
		}
		.login-title{
			font-size : 16px;
			border-bottom:1px solid #eee;
			padding:8px 0;
		}
	</style>
</head>
<body>

<nav class="navbar navbar-default navbar-fixed-top">
	<div class="container">
		<div class="navbar-header">
                 <!-- <button class="navbar-toggle" data-toggle="collapse" data-target="#navbarCollapse">
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
                 </button> -->
                <a href="javascript:;" class="navbar-brand">微信签到系统后台管理-用户登录</a>
          </div>
	</div>
</nav>

<div class="main" style="margin-top:100px;">
	<div class="container">
			<div class="col-md-4"></div>
			<div class="col-md-4 login" >
				<h3 class="login-title">用户登录</h3>
				<c:if test="${loginError!=null }">
					<div class="alert alert-danger" style="margin:10px auto;">${loginError }</div>
				</c:if>
				<c:if test="${regSuccess!=null }">
					<div class="alert alert-success" style="margin:10px auto;">${regSuccess }</div>
				</c:if>
				<form method="post" action="adminManager?method=login" class="form-horizontal">
					<div class="control-group">
						 <label class="control-label" for="inputEmail">用户名</label>
						  <input id="inputEmail" class="form-control" type="text" name="uname"/>
					</div>
					<div class="control-group">
						 <label class="control-label" for="inputPassword">密　码</label>
						 <input id="inputPassword" class="form-control"  type="password" name="upwd"/>
					</div>
					<div class="control-group" style="text-align:center;">
					   <button type="submit" class="btn btn-info" style="margin-right:25px;">登录</button>
						<a href="regist.jsp"  class="btn btn-primary">注册</a>
					</div>
				</form>
			</div>
			<div class="col-md-4"></div>
	</div>
</div>

<script src="<%=path %>/admin/js/jquery.js"></script>
<script src="<%=path %>/admin/js/bootstrap.min.js"></script>
</body>
</html>